const gis = this.getApiPage().getApiWidgetByAliasName('三维组件');

const { dataSource } = this.widgetObj._option;
const { dataIndex, formValue } = $event;

if (dataIndex === 'occurrencePlace') {
    const form = this.getApiPage().retrievePlugin('base-forms');

    dataSource.drillLocation = formValue.id;
    this.widgetObj._option.dataSource = dataSource;
    form.setFormData('form_19', dataSource);

    if (formValue.projectAreaRange) {
        gis.widgetObj.gisMap.areaPosition(formValue.id);
    } else {
        layer?.msg('未设置地图坐标！')
    }
}
